// 对外暴露的配置路由
export const constantRoute = [{
    path: "/login",
    component: () => import("@/views/login/index.vue"),
    name: "login", // 命名路由
    meta: {
      title: "登录",
      hidden: true, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
    },
  },
  {
    path: "/personal_center",
    component: () => import("@/views/layout/index.vue"),
    name: "personal_center", // 命名路由
    meta: {
      title: "个人中心",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
      icon: "Flag",
    },
    redirect: '/charter_consultation_list',
    children: [{
        path: '/charter_consultation_list',
        name: "charter_consultation_list", // 命名路由
        component: () => import("@/views/personal_center/charter_consultation_list/index.vue"),
        meta: {
          title: "包车咨询列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Flag",
        },
      },

    ]
  },
  {
    path: "/rights_management",
    component: () => import("@/views/layout/index.vue"),
    name: "rights_management", // 命名路由
    meta: {
      title: "权限管理",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
      icon: "HelpFilled",
    },
    redirect: '/original_menu',
    children: [{
        path: '/original_menu',
        name: "original_menu", // 命名路由
        component: () => import("@/views/rights_management/original_menu/index.vue"),
        meta: {
          title: "原始菜单",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Histogram",
        },
      }, {
        path: '/fleet_menu',
        name: "fleet_menu", // 命名路由
        component: () => import("@/views/rights_management/fleet_menu/index.vue"),
        meta: {
          title: "车队菜单",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Grid",
        },
      },


    ]
  },
  {
    path: "/order_list",
    component: () => import("@/views/layout/index.vue"),
    name: "order_list", // 命名路由
    meta: {
      title: "订单管理",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
      icon: "Histogram",
    },
    redirect: '/original_order_list',
    children: [{
        path: '/original_order_list',
        name: "original_order_list", // 命名路由
        component: () => import("@/views/order_list/original_order_list/index.vue"),
        meta: {
          title: "订单列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Histogram",
        },
      },
      // {
      //   path: '/order_follow_up',
      //   name: "order_follow_up", // 命名路由
      //   component: () => import("@/views/order_list/order_follow_up/index.vue"),
      //   meta: {
      //     title: "订单跟进",
      //     hidden: false, // 路由是否隐藏：true隐藏，false显示
      //     keepAlive:true,
      //     icon: "Promotion",
      //   },
      // },


    ]
  },
  {
    path: "/customer_list",
    component: () => import("@/views/layout/index.vue"),
    name: "layout", // 命名路由
    meta: {
      title: "客户管理",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
      icon: "UserFilled",
    },
    redirect: '/custom_list',
    children: [{
        path: '/custom_list',
        name: "custom_list", // 命名路由
        component: () => import("@/views/customer_list/custom_list/index.vue"),
        meta: {
          title: "客户列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "UserFilled",
        },
      }, {
        path: '/unit_list',
        name: "unit_list", // 命名路由
        component: () => import("@/views/customer_list/unit_list/index.vue"),
        meta: {
          title: "单位列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Wallet",
        },
      },
      {
        path: '/wallet_list',
        name: "wallet_list", // 命名路由
        component: () => import("@/views/customer_list/wallet_list/index.vue"),
        meta: {
          title: "钱包列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Wallet",
        },
      }, {
        path: '/basic_settings',
        name: "basic_settings", // 命名路由
        component: () => import("@/views/customer_list/basic_settings/index.vue"),
        meta: {
          title: "交易记录列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示

          keepAlive: true,
          icon: "DocumentCopy",
        },
      },


    ]
  },
  {
    path: "/404",
    component: () => import("@/views/404/index.vue"),
    name: "404", // 命名路由
    meta: {
      title: "404",
      hidden: true, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
    },
  },
  {
    path: "/:pathMatch(.*)*",
    redirect: "/login",
    name: "any",
    meta: {
      title: "任意路由",
      hidden: true, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
    },
  },

  {
    path: "/billing",
    component: () => import("@/views/layout/index.vue"),
    name: "billing", // 命名路由
    meta: {
      title: "账单",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
      icon: "Grid",
    },
    redirect: '/billing_settings',
    children: [{
        path: '/billing_settings',
        name: "billing_settings", // 命名路由
        component: () => import("@/views/billing_settings/index.vue"),
        meta: {
          title: "账单列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Grid",
        },
      }


    ]
  },
  {
    path: "/discount_coupon_management",
    component: () => import("@/views/layout/index.vue"),
    name: "discount_coupon_management", // 命名路由
    meta: {
      title: "优惠卷管理",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
      icon: "CreditCard",
    },
    redirect: '/discount_coupon_settings',
    children: [{
        path: '/discount_coupon_settings',
        name: "discount_coupon_settings", // 命名路由
        component: () => import("@/views/discount_coupon_management/discount_coupon_settings/index.vue"),
        meta: {
          title: "优惠卷设置",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Paperclip",
        },
      },
      {
        path: '/claim_details',
        name: "claim_details", // 命名路由
        component: () => import("@/views/discount_coupon_management/claim_details/index.vue"),
        meta: {
          title: "领取详情",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "ShoppingCartFull",
        },
      }



    ]
  },
  {
    path: '/transaction_list',
    name: "transaction_list", // 命名路由
    component: () => import("@/views/layout/index.vue"),
    meta: {
      title: "基础设置",
      hidden: false, // 路由是否隐藏：true隐藏，false显示
      keepAlive: true,
      icon: "Setting",
    },
    redirect: '/regionalsettings',
    children: [{
        path: '/regionalsettings',
        name: "regionalsettings", // 命名路由
        component: () => import("@/views/customer_list/transaction_list/regionalsettings/index.vue"),
        meta: {
          title: "区域设置",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "UserFilled",
        },
      }, {
        path: '/constdata',
        name: "constdata", // 命名路由
        component: () => import("@/views/customer_list/transaction_list/constdata/index.vue"),
        meta: {
          title: "常量数据设置",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Wallet",
        },
      }, {
        path: '/festivalandholiday',
        name: "festivalandholiday", // 命名路由
        component: () => import("@/views/customer_list/transaction_list/festivalandholiday/index.vue"),
        meta: {
          title: "节假日设置",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Document",
        },
      }, {
        path: '/holidaymarkup',
        name: "holidaymarkup", // 命名路由
        component: () => import("@/views/customer_list/transaction_list/holidaymarkup/index.vue"),
        meta: {
          title: "节假日加价设置",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Notebook",
        },
      },
      {
        path: '/templatesInfo',
        name: "templatesInfo", // 命名路由
        component: () => import("@/views/customer_list/transaction_list/templatesInfo/index.vue"),
        meta: {
          title: "模板基础信息设置",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Tickets",
        },
      },
      {
        path: '/carpoolprice',
        name: "carpoolprice", // 命名路由
        component: () => import("@/views/customer_list/transaction_list/carpoolprice/index.vue"),
        meta: {
          title: "拼车价格模板设置",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Memo",
        },
      },
      {
        path: '/sfcPriceTemplates',
        name: "sfcPriceTemplates", // 命名路由
        component: () => import("@/views/customer_list/transaction_list/sfcPriceTemplates/index.vue"),
        meta: {
          title: "顺风车价格模板设置",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Collection",
        },
      },
      {
        path: '/bcPriceTemplates',
        name: "bcPriceTemplates", // 命名路由
        component: () => import("@/views/customer_list/transaction_list/bcPriceTemplates/index.vue"),
        meta: {
          title: "包车价格模板设置",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Collection",
        },
      },
      {
        path: '/hotel',
        name: "hotel", // 命名路由
        component: () => import("@/views/customer_list/transaction_list/hotel/index.vue"),
        meta: {
          title: "地点设置",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Position",
        },
      }, {
        path: '/flightTrainInfo',
        name: "flightTrainInfo", // 命名路由
        component: () => import("@/views/customer_list/transaction_list/flightTrainInfo/index.vue"),
        meta: {
          title: "航班车次列表",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Postcard",
        },
      },
      {
        path: '/abnormal_reporting_settings',
        name: "abnormal_reporting_settings", // 命名路由
        component: () => import("@/views/customer_list/transaction_list/abnormal_reporting_settings/index.vue"),
        meta: {
          title: "异常报备设置",
          hidden: false, // 路由是否隐藏：true隐藏，false显示
          keepAlive: true,
          icon: "Grid",
        },
      }



    ]
  },
];
